process.on('uncaughtException', (msg) => {
    console.log('===> error', msg)
})


console.log('pid='+process.pid);
console.log('version='+process.version);
console.log('platform='+process.platform);
console.log('title='+process.title);

setTimeout(()=>{
    
    process.nextTick(()=>{
        console.log(123)
    })
    console.log(22333)
    throw new Error("mysql is bad, connect")
})

setTimeout(()=>{

throw new Error("mysql is bad, connectqqq")
},10000)

process.on('exit', () => {
    console.log('this process did')
})


process.nextTick(()=>{
    console.log('vvvv')
})
console.log(222)